class Producto < ActiveRecord::Base
  validates_presence_of :nombre
  
  validates_length_of :nombre, :maximum=>50
  validates_length_of :idioma, :maximum=>30
  
  validates_numericality_of [:precio, :costo], :integer=>false
  validates_numericality_of :stock, :integer=>true
end
